package com.module.api.test.client;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import com.module.api.test.ApiConfig;
import com.system.auth.AuthUtil;
import com.system.comm.utils.FrameHttpUtil;

public class UpdateRelease {

	public static void main(String[] args) throws IOException {
		String clientId = ApiConfig.clientId;
		String time = String.valueOf(System.currentTimeMillis());
		String sercret = ApiConfig.token;
		Map<String, String> params = new HashMap<String, String>();
		params.put("clientId", clientId);
		params.put("time", time);
		params.put("sign", AuthUtil.auth(clientId, time, sercret));

		params.put("prjId", "1");
		
		String result = FrameHttpUtil.post(ApiConfig.address + "/auth/client/updateRelease.shtml", params);
		System.out.println(result);
		
	}
}
